﻿<UserControl
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:local="clr-namespace:SfdClient.View" 
			 x:Class="SfdClient.View.BrowserView" 
             mc:Ignorable="d" 
             d:DesignHeight="480" d:DesignWidth="640" 
    DataContext="{Binding Source={StaticResource locator}, Path=BrowserViewModel}"
    Background="{DynamicResource mainBackgroundBrush}">	
	
    <Grid >
    	<Grid.RowDefinitions>
    		<RowDefinition Height="Auto"/>
    		<RowDefinition Height="*"/>
    		<RowDefinition Height="Auto"/>
    	</Grid.RowDefinitions>
    	<Grid Height="64">
    		<Grid.ColumnDefinitions>
    			<ColumnDefinition Width="64"/>
    			<ColumnDefinition Width="*"/>
    		</Grid.ColumnDefinitions>
    		<Button Style="{DynamicResource Win8ButtonStyle}" Click="Button_Click" Height="48" VerticalAlignment="Center" d:LayoutOverrides="Width" HorizontalAlignment="Left" >
    			<Image Source="{DynamicResource Back}" Height="48"/>
    		</Button>
            <TextBlock TextWrapping="Wrap" Text="{Binding ProjectFriendlyName}" Style="{DynamicResource TitleStyle}" Grid.Column="1"/>
    	</Grid>
    	<Grid Grid.Row="1" >
    		<Grid.ColumnDefinitions>
    			<ColumnDefinition Width="0.5*"/>
    			<ColumnDefinition Width="0.5*"/>
    		</Grid.ColumnDefinitions>         
    		<local:FolderBrowserView Grid.Row="1"/>
			<local:AzureBrowserView Grid.Row="1" Grid.Column="1"/>
    	</Grid>
    	<Border x:Name="border" Grid.Row="2" Background="Black" d:LayoutOverrides="Height">
    		<Grid x:Name="grid" Background="Black" Opacity="1" >
    			<Grid.ColumnDefinitions>
    				<ColumnDefinition Width="Auto"/>
    				<ColumnDefinition Width="Auto"/>
    				<ColumnDefinition Width="*"/>
    				<ColumnDefinition Width="Auto"/>
    				<ColumnDefinition Width="Auto"/>
    			</Grid.ColumnDefinitions>
				
    			<StackPanel d:LayoutOverrides="Height" Orientation="Horizontal">
    				<Button
						x:Name="btnSync" Style="{DynamicResource Win8ButtonStyle}"
						Command="{Binding Source={StaticResource locator}, Path=FolderBrowserViewModel.RefreshCommand, Mode=OneWay}" >
    					<StackPanel Orientation="Vertical">
    						<Image Source="{DynamicResource Refresh}" Height="48"/>
                            <TextBlock TextWrapping="Wrap" Foreground="White" 
                                       Text="{Binding [BrowserView_Rafraichir], Source={StaticResource localizer}}" HorizontalAlignment="Center"/>
    					</StackPanel>
    				</Button>
    				<Button 
						x:Name="btnMoveUp" Style="{DynamicResource Win8ButtonStyle}"
						Command="{Binding Source={StaticResource locator}, Path=FolderBrowserViewModel.MoveUpFolderCommand, Mode=OneWay}" >
    					<StackPanel Orientation="Vertical">
    						<Image Source="{DynamicResource MoveUp}" Height="48"/>
                            <TextBlock TextWrapping="Wrap" Foreground="White" 
                                       Text="{Binding [BrowserView_NiveauSup], Source={StaticResource localizer}}" HorizontalAlignment="Center"/>
    					</StackPanel>
    				</Button>
    				<Button 
						x:Name="btnExplore" Style="{DynamicResource Win8ButtonStyle}" 
						Command="{Binding Source={StaticResource locator}, Path=FolderBrowserViewModel.ShowExplorerCommand, Mode=OneWay}" >
    					<StackPanel Orientation="Vertical">
    						<Image Source="{DynamicResource Explore}" Height="48"/>
                            <TextBlock TextWrapping="Wrap" Foreground="White" Text="{Binding [BrowserView_ExplorateurWindows], Source={StaticResource localizer}}" HorizontalAlignment="Center"/>
    					</StackPanel>
    				</Button>
    			</StackPanel>
    			<StackPanel Grid.Column="3" Orientation="Horizontal" d:LayoutOverrides="Width">
    				<Button 
						x:Name="btnAzureMoveUp" Style="{DynamicResource Win8ButtonStyle}"
						Command="{Binding Source={StaticResource locator}, Path=AzureBrowserViewModel.MoveUpFolderCommand, Mode=OneWay}" >
    					<StackPanel Orientation="Vertical">
    						<Image Source="{DynamicResource MoveUp}" Height="48"/>
                            <TextBlock TextWrapping="Wrap" Foreground="White" Text="{Binding [BrowserView_NiveauSupAzure], Source={StaticResource localizer}}" HorizontalAlignment="Center"/>
    					</StackPanel>
    				</Button>
    				<Button
						x:Name="btnAzureSync" Style="{DynamicResource Win8ButtonStyle}"
						Command="{Binding Source={StaticResource locator}, Path=AzureBrowserViewModel.RefreshCommand, Mode=OneWay}" >
    					<StackPanel Orientation="Vertical">
    						<Image Source="{DynamicResource Refresh}" Height="48"/>
                            <TextBlock TextWrapping="Wrap" Foreground="White" Text="{Binding [BrowserView_RafraichirAzure], Source={StaticResource localizer}}" HorizontalAlignment="Center"/>
    					</StackPanel>
    				</Button>

    			</StackPanel>
    		</Grid>
    	</Border>
    	
		
            
    </Grid>
</UserControl>
